import request from '@/utils/requestN'

export function studentsList(params) {
    return request({
        url: '/api/students/list',
        method: 'get',
        params: params
    })
}

export function deleteAllStudents(params) {
    return request({
        url: '/api/students/delete_all',
        method: 'delete'
    })
}

export function getApiStudentsList() {
    return request({
        url: '/api/students/get/list',
        method: 'get'
    })
}

//获取云平台未同步的数据
export function getExamCloudStudentsList(params) {
    return request({
        url: '/api/exam/cloud/student/list',
        method: 'get',
        params: params
    })
}

//同步平台成绩至本地
export function syncCloudResultLocal(data) {
    return request({
        url: '/api/sync/cloud/result/local',
        method: 'post',
        data: data
    })
}

//上传本地待上传的数据到第三方
export function syncLocalResultThird() {
    return request({
        url: '/api/sync/local/result/third',
        method: 'get'
    })
}

//获取组内考生成绩信息
export function printResult(data) {
    return request({
        url: '/api/print/result',
        method: 'post',
        data: data
    })
}